package com.ems.service;

import com.ems.entity.TMaterial;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ems.entity.vo.MyParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZZH
 * @since 2022-06-27
 */
public interface ITMaterialService extends IService<TMaterial> {

    int addMaterial(TMaterial tMaterial);

    int deleteMaterial(Integer id);

    List<TMaterial> getList();

    int updateMaterial(TMaterial tMaterial);

    int scrapMaterial(Integer id);

    TMaterial selectByMatId(Integer id);

    int updateParam(MyParam param);

    List<TMaterial> selectByPage(int num, int count, String name, Integer state);

    List<TMaterial> getDetail();


}
